$dpath = "G:\EnvCache\docker"
wsl -l
Write-Output '*******'
Write-Output 'export docker-desktop And docker-desktop-data'
Write-Output '*******'
wsl --export docker-desktop $dpath\docker-desktop.tar

wsl --export docker-desktop-data $dpath\docker-desktop-data.tar

Write-Output '*******'
Write-Output 'unregister docker-desktop And docker-desktop-data'
Write-Output '*******'
wsl --unregister docker-desktop

wsl --unregister docker-desktop-data

Write-Output '*******'
Write-Output 'import docker-desktop And docker-desktop-data'
Write-Output '*******'

wsl --import docker-desktop $dpath\docker-desktop $dpath\docker-desktop.tar --version 2

wsl --import docker-desktop-data $dpath\docker-desktop-data $dpath\docker-desktop-data.tar --version 2
Pause